<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../css/amazeui.min.css" />
		<link rel="stylesheet" href="../css/admin.css" />
	</head>

	<body>
		<div class="admin-content-body">
			<div class="am-cf am-padding am-padding-bottom-0">
				<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单管理</strong><small></small></div>
			</div>

			<hr>
			<div class="am-g">
				<div class="am-u-sm-12 am-u-md-6">
					<div class="am-btn-toolbar">
						<div class="am-btn-group am-btn-group-xs">
							<button type="button" class="am-btn am-btn-default" ><span class="am-icon-plus"></span><a href="#" th:href="@{http://localhost:8082/Coupon/couponInsertDo}"> 新增</a></button>
						</div>

					</div>
				</div>
				<div class="am-u-sm-12 am-u-md-3">

				</div>
				<div class="am-u-sm-12 am-u-md-3">
					<div class="am-input-group am-input-group-sm">
						<input type="text" class="am-form-field">
						<span class="am-input-group-btn">
            <button class="am-btn am-btn-default" type="button">搜索</button>
          </span>
					</div>
				</div>
			</div>
			<div class="am-g">
				<div class="am-u-sm-12">
					<form class="am-form">
						<table class="am-table am-table-striped am-table-hover table-main">
							<thead>
								<tr>
									<th class="table-id">订单编号</th>
									<th class="table-title">地址名称</th>
									<th class="table-type">用户名称</th>
									<th class="table-author am-hide-sm-only">订单状态</th>
									<th class="table-money am-hide-sm-only">总价</th>
									<th class="table-ware am-hide-sm-only">仓库名称</th>
									<th class="table-set">操作</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each=" pp : ${list}">

									<td th:text="${pp.getOrderNumber()}"></td>
									<td>
										<a href="#" th:text="${pp.getDetailedAddress()}" ></a>
									</td>
									<td href="#" th:text="${pp.getUserName()}"></td>
									<td class="am-hide-sm-only" th:text="${pp.getStatusName()}"></td>
									<td class="am-hide-sm-only" th:text="${pp.getTotalPrice()}"></td>
									<td class="am-hide-sm-only" th:text="${pp.getWarName()}"></td>

									<td>
										<div class="am-btn-toolbar">
											<div class="am-btn-group am-btn-group-xs">
												<button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"  ><span class="am-icon-trash-o" ><a href="#" th:href="@{http://localhost:8082/getOrderForm/updateOrderStatusDo(ordernumber=${pp.getOrderNumber()})}">编辑</a></span></button>
											</div>
										</div>
									</td>
								</tr>
							</tbody>
						</table>

						<hr>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>